package com.twu.biblioteca.business;

import com.twu.biblioteca.data.entity.User;

import java.util.ArrayList;
import java.util.List;

public class UserService {

    private User user;

    public User getLoginUser(){
        return user;
    }

    public void login(User user){
        this.user = user;
    }

    public List<User> getUsers(){
        List<User> users=new ArrayList<User>();
        users.add(new User("111-1111","aaa","james","james@hotmail.com","13398429832"));
        users.add(new User("111-1112","bbb","Tom","Tom@gmail.com","18208799140"));

        return users;

    }
}
